<?php
use \PsiFramework\Classes\Util\UI\Printer;
use \PsiFramework\Classes\Util\UI\HTML;

Header("content-type: application/xml");
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n" ;
?>
<!DOCTYPE values [
  <!ELEMENT values (value)*>
  <!ELEMENT value (#PCDATA)>
  <!ATTLIST value id CDATA #IMPLIED>
]>
<values>
    <?php 
    $objects = $response->getAttribute("objects");
    
    foreach ($objects as $object) {
    ?>
    <value id="<?php Printer::display($object->getId()); ?>">
        <?php Printer::display(str_replace("&", "&amp;", $object->toString())); ?>
    </value>
    <?php
    }
    ?>
</values>